package base;

import com.github.pagehelper.PageInfo;
import entity.PageParam;
import entity.Rsp;

import java.util.List;

public interface BaseService<T> {


    public PageInfo<T> searchSomeByPage(PageParam<T> pageParam);

    public T getOneById(String id);

    public Rsp addOne(T t);

    public Rsp deleteOneTrue(String id);

    public Rsp update(T t);

    public Rsp deleteLogical(T t);

    public Rsp recoverLogical(T t);

    public Rsp deleteBatchTrue(List<String> ids);

    public Rsp deleteBatchLogical(List<String> ids);

    public Rsp deleteSomeLogicalByCondition(T t);

    public Rsp deleteSomeTrueByCondition(T t);

}
